package xsdcl;

import java.util.ArrayList;
import java.util.List;

public class MS
{
	private List<TreeNode> members;

	public MS()
	{
		members = new ArrayList<TreeNode>();
	}

	public List<TreeNode> getMembers()
	{
		return members;
	}

	public void setMembers(List<TreeNode> members)
	{
		this.members = members;
	}

	public int getMemberSize()
	{
		return members.size();
	}

	public void addMember(TreeNode node)
	{
		members.add(node);
	}
	
	public void print()
	{
		String s = "";
		
		for (TreeNode member:members)
		{
			s= s+ member.getName()+", ";
		}
		System.out.println(s.substring(0,s.length()-2));
	}
}
